package cn.hinglo.gameclaw.client.action;

import cn.hinglo.gameclaw.admin.service.MenuService;
import cn.hinglo.gameclaw.data.controller.BaseController;
import cn.hinglo.gameclaw.data.entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @createTime: 2018/1/8
 * @author: HingLo
 * @description: 客服端的菜单请求
 */
@RestController
@RequestMapping("client/mc/")
public class MenuClientAction extends BaseController {

    private final MenuService menuService;

    @Autowired
    public MenuClientAction(MenuService menuService) {
        this.menuService = menuService;
    }


    /**
     * 手机端，查看所有的菜单分类
     *
     * @return 操作结果
     */
    @GetMapping("list")
    public Result listMenuClient() {
        return menuService.listMenuService();
    }


}
